#ifndef MYWIDGET_H
#define MYWIDGET_H

#include <QWidget>
#include <QTcpServer>
#include <QTcpSocket>
#include <QDebug>
#include <QByteArray>
namespace Ui {
class myWidget;
}

class myWidget : public QWidget
{
    Q_OBJECT

public:
    explicit myWidget(QWidget *parent = 0);
    ~myWidget();

private:
    Ui::myWidget *ui;
    QTcpServer *tcp1;
    QTcpServer *tcp2;
    QTcpSocket *sockfd1;
    QTcpSocket *sockfd2;
    QByteArray buf;
private slots:
    void tcp1accept();
    void tcp2accept();
    void Data();

    void on_reset_server_clicked();
};

#endif // MYWIDGET_H
